home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 138 / 138.xpi / chrome / stumbleupon.jar / content / reportTopicDialog.js < prev    next >
Text File  |  2009-05-22  |  529b  |  28 lines

  1. var detail;
  2.  
  3. function init()
  4. {
  5.     detail = window.arguments[0];
  6.     
  7.     var el;
  8.     
  9.     el = document.getElementById("stumble_report_topic_dialog");
  10.     el.getButton("accept").label = "  Suggest Topic Change  ";
  11.     
  12.     el = document.getElementById("prompt_old_topic");
  13.     el.value = detail.old_topic_name;
  14.  
  15.     el = document.getElementById("prompt_new_topic");
  16.     el.value = detail.new_topic_name;
  17. }
  18.  
  19. function doOK()
  20. {
  21.     opener.setTimeout(
  22.         function(parent, detail) {
  23.             parent.su_handle_report_topic_dialog_accept(detail); },
  24.         0,
  25.         opener,
  26.         detail);
  27. }
  28.